<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:a="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
				template="template.xhtml">

    <ui:define name="content">
        <h:form id="beanValidatorForm">
             <rich:panel>
                 <f:facet name="header">
                     <h:outputText value="#{UserDao.currentUser}" id="progress"/>
                 </f:facet>
                 <h:panelGrid columns="2">
                     <h:outputText value="Username:" />
                     <h:inputText value="#{credentials.username}" id="name">
                         <!--<rich:beanValidator summary="Invalid name"/>-->
                     </h:inputText><h:outputText value="Password:" />
                     <h:inputText value="#{credentials.password}" id="password">
                         <!--<rich:beanValidator summary="Invalid email"/>-->
                     </h:inputText>
                     <f:facet name="footer">
                         <h:commandButton value="Submit" action="#{identity.login}"/>
                     </f:facet>
                 </h:panelGrid>
             </rich:panel>
         </h:form>
    </ui:define>
    <!--<rich:message for="name" />-->
    <!--<rich:message for="password" />-->
    <ui:define name="leftsidebar">
    </ui:define>
    <ui:define name="rightsidebar">
    </ui:define>
</ui:composition>